package code {

import code.command.CollapseFoldersCommand;
import code.command.ExpandFoldersCommand;
import code.command.InsertTopicCommand;
import code.command.InsertVoteCommand;
import code.command.LoginCommand;
import code.command.LogoutCommand;
import code.command.RegisterCommand;
import code.command.RevokeVoteCommand;
import code.command.SearchCommand;
import code.command.ViewTopicCommand;
import code.event.CollapseFoldersEvent;
import code.event.ExpandFoldersEvent;
import code.event.InsertTopicEvent;
import code.event.InsertVoteEvent;
import code.event.LoginEvent;
import code.event.LogoutEvent;
import code.event.RegisterEvent;
import code.event.RevokeVoteEvent;
import code.event.SearchEvent;
import code.event.ViewTopicEvent;

import com.adobe.cairngorm.control.FrontController;
	

public class Controller extends FrontController {
	public function Controller() {
		
		this.addCommand(RegisterEvent.REGISTER, RegisterCommand);
		this.addCommand(LoginEvent.LOGIN, LoginCommand);
		this.addCommand(LogoutEvent.LOGOUT, LogoutCommand);
		
		this.addCommand(InsertTopicEvent.INSERT_TOPIC, InsertTopicCommand);
		this.addCommand(ViewTopicEvent.VIEW_TOPIC, ViewTopicCommand);
		
		this.addCommand(InsertVoteEvent.INSERT_VOTE, InsertVoteCommand);
		this.addCommand(RevokeVoteEvent.REVOKE_VOTE, RevokeVoteCommand);
		
		this.addCommand(ExpandFoldersEvent.EXPAND_FOLDERS, ExpandFoldersCommand);
		this.addCommand(CollapseFoldersEvent.COLLAPSE_FOLDERS, CollapseFoldersCommand);
		
		this.addCommand(SearchEvent.SEARCH, SearchCommand);
		
	}
}
}